package com.xxxx.server.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 辅导员核酸登记登记表
 * </p>
 *
 * @author zhoubin
 * @since 2022-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_inucleic")
@ApiModel(value="Inucleic对象", description="辅导员核酸登记登记表")
public class Inucleic implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "辅导员id")
    private Integer INid;

    @ApiModelProperty(value = "登记日期")
    @Excel(name="登记日期",width = 20,format = "yyyy-MM-dd")
    private LocalDateTime INdate;

    @ApiModelProperty(value = "原因")
    @Excel(name = "核酸检测原因")
    private String INresult;

    @ApiModelProperty(value = "第一次检测时间")
    @Excel(name="第一次检测时间",width = 20,format = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime test1time;

    @ApiModelProperty(value = "第一次检测结果")
    @Excel(name = "第一次检测结果",replace = {"阴性_1","阳性_2"})
    private String test1result;

    @ApiModelProperty(value = "第二次检测时间")
    @Excel(name="第二次检测时间",width = 20,format = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime test2time;

    @ApiModelProperty(value = "第二次检测结果")
    @Excel(name = "第二次检测结果",replace = {"阴性_1","阳性_2"})
    private String test2result;

    @ApiModelProperty(value = "第三次检测时间")
    @Excel(name="第三次检测时间",width = 20,format = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime test3time;

    @ApiModelProperty(value = "第三次检测结果")
    @Excel(name = "第三次检测结果",replace = {"阴性_1","阳性_2"})
    private String test3result;

    @ApiModelProperty(value = "是否失效")
    @Excel(name = "是否失效",replace = {"否_1","是_0"})
    private Integer enable;

    @ApiModelProperty(value = "姓名")
    @TableField(exist = false)
    @Excel(name = "姓名")
    private String name;

    @ApiModelProperty(value = "学院名字")
    @TableField(exist = false)
    @Excel(name = "学院名称")
    private String coname;

}
